Breakpoint is ignored

T

Tim Cali

I set a breakpoint in a project, however the breakpoint is ignored. This was
in the TimeTracker project from the Asp.Net site.

I added it at the Login method of the TTUser class (TTUser.vb). I know I
have the right insertion point where I want to begin stepping, because I
changed "return username" to "return string.empty", and even when I put in
the right login info, it doesn't let me enter the app. So this test told me
that I have the right point.

So right click to the left window of "userName =
CStr(SqlHelper.ExecuteScalar..." and select Insert Breakpoint.

Then when I login, the app takes me to the project hours entry page without
stopping.

Why is the breakpoint ignored? Is it possible to step through the app?
 
K

Ken Tucker

Tim,

You are running the code in debug mode breakpoints are ignored in
release mode.

Ken
 
C

Craig Deelsnyder

Tim said:
I don't understand. Please tell me what I must do to remedy this. (Newbie
here)
I think he was trying to say make sure your IDE is running in Debug
mode, not Release mode. Also, when you're running, do your breakpoints
show up as red dots, or do they also have question marks (?) inside the
red dot? If there are ?, then it's not running with debug symbols
loaded. Make sure you build and run in Debug mode.
 
H

Herfried K. Wagner [MVP]

Craig Deelsnyder said:
I think he was trying to say make sure your IDE is running
in Debug mode, not Release mode. Also, when you're running,
do your breakpoints show up as red dots, or do they also have
question marks (?) inside the red dot? If there are ?, then it's
not running with debug symbols loaded. Make sure you
build and run in Debug mode.

Notice that it's possible to switch between Release and Debug mode with a
combobox embedded in the toolbar of VS.NET.
 
T

Tim Cali

Ok, thanks. The app is in debug mode, so the problem persists.

Is there anything else I can try?

Does it matter that this is an asp.net app? I activate it in IE through
http:// localhost/ttwebvbvs
 
B

Brian W

Are you saying you brought up the web browser and typed "http://
localhost/ttwebvbvs" into the address bar?

If so, the debugger has now idea you have done this, how could it?

You must either run the app through the IDE (by pressing F5) or use the
attach to process under the Debug|Processes menu.

Pressing F5 is definitely the easier route.


Good luck
Brian W

Tim Cali said:
Ok, thanks. The app is in debug mode, so the problem persists.

Is there anything else I can try?

Does it matter that this is an asp.net app? I activate it in IE through
http:// localhost/ttwebvbvs
 
T

Tim Cali

Are you saying you brought up the web browser and typed "http://
localhost/ttwebvbvs" into the address bar?
Yes

If so, the debugger has now idea you have done this, how could it?

Why wouldn't it? Is this a fully compiled application? I'm from the VBA
world (newbie to .Net).
Pressing F5 is definitely the easier route.

Ok, so I do this, and I see the message:
"Running the project requires setting an initial web page. To set this page,
right-click the desired page in the Solution Explorer and select "Set As
Start Page".

Ok, so I select some page, and do that, but still get that message, no
matter which page I set as start page.




Brian W said:
Are you saying you brought up the web browser and typed "http://
localhost/ttwebvbvs" into the address bar?

If so, the debugger has now idea you have done this, how could it?

You must either run the app through the IDE (by pressing F5) or use the
attach to process under the Debug|Processes menu.

Pressing F5 is definitely the easier route.


Good luck
Brian W
 
C

Cor

Hi Tim,
I would make in this case a new empty Asp.net application.
And would put then in the page load event from the created webform only the
syntax
\\\
dim test as integer = 1
///
I would set a breakpoint on that and run in debug mode, it's a simple test,
but then I would know if my system was working in the right way.

Cor
 
T

Tim Cali

Thanks. Yes, it is working. I added a breakpoint like you suggested it,
F5'ed the new asp.net app's Web Form, and VS stopped on that line.
Then I F10'ed through the line.
 

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

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top