Q: visual studio .net

G

Guest

Hello,
I am using visual studio .net 2003 and I am trying to debug the application,
it does not seem that it hits the break point. I added a simple button and a
on click procedure but break point does not stop, any idea what might be the
problem? Is there a group for visual studio?
Thanks,
Jim.
 
K

Kevin Spencer

microsoft.public.vstudio.general.

However, I'll take the liberty of giving you an answer right away:

First, are you sure that your configuration is set to Debug rather than
Release?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
G

Guest

I was able to debug until I added a login page and another aspx page. I did
not release it yet.
 
K

Kevin Spencer

Hi Jim,

I was referring to the Build Configuration. There should be a combo box at
the top which says either "Release" or "Debug."

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
G

Guest

Kevin, thanks for the reply.
Break point in page_load works fine, and I see at the top, I am in Debug mode.

I added a button to my application and double click on it and created this
function.
Now I am putting break point at a=a+1 and clicking button1, it does not stop
there.

private void Button1_Click(object sender, System.EventArgs e)
{
int a=1;
a=a+1;
}
What else should I check?
Thanks,
Jim.
 
G

Guest

Hello,
It des not seem that it is a debug issue, my click event is not working
because the following does not print.

private void Button1_Click(object sender, System.EventArgs e)
{
Response.Write( "Button1_Click" );
}
I created this event by double clicking on button1, what is wrong?
Thanks,
Jim.
 
K

Kevin Spencer

Make sure your event handler is wirred up to the button.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
G

Guest

Thanks. I did not have definitions in #region Web Form Designer. working fine
now.
Thanks,
jim.
 
K

Kevin Spencer

Aha! Glad to hear it.

--

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top