断点被忽略 [英] Breakpoint is ignored

查看:78
本文介绍了断点被忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中设置断点,但忽略断点。这是来自Asp.Net站点的TimeTracker项目中的




我在TTUser类(TTUser.vb)的Login方法中添加了它。我知道我

有正确的插入点,我想开始踩踏,因为我更改了返回用户名和返回用户名。 toreturn string.empty,甚至当我输入

正确的登录信息时,它也不允许我进入应用程序。所以这个测试告诉我

我有正确的观点。


所以右键单击左侧窗口userName =

CStr(SqlHelper.ExecuteScalar ..."并选择Insert Breakpoint。


然后当我登录时,应用程序将我带到项目时间输入页面,而不是

停止。


为什么忽略断点?是否可以单步执行应用程序?

解决方案

Tim,


您在调试模式下运行代码在

发布模式中忽略断点。




--------------

Tim Cali< Ca ***** *@yahoo.com>在留言中写道

news:eo ************** @ TK2MSFTNGP10.phx.gbl ...

我在一个项目中设置了一个断点,但忽略断点。这个
来自Asp.Net站点的TimeTracker项目。

我在TTUser的Login方法中添加了它CLAS s(TTUser.vb)。我知道我有一个正确的插入点,我想开始踩踏,因为我改变了返回用户名。 toreturn string.empty,即使我输入了正确的登录信息,它也不会让我进入应用程序。所以这个测试告诉
我有正确的观点。

所以右键单击左侧窗口userName =
CStr(SqlHelper.ExecuteScalar ...并选择Insert Breakpoint。

然后当我登录时,应用程序将我带到项目时间输入页面
而不停止。

为什么断点被忽略?是可以逐步完成应用程序吗?



我不明白。请告诉我我必须做些什么解决这个问题。(新手

这里)


" Ken Tucker"< vb *** @ bellsouth.net>写在消息中

news:uq ************** @ TK2MSFTNGP10.phx.gbl ...

Tim,

你是在调试模式中运行代码断点在
发布模式中被忽略。

Ken
--------------
" Tim Cali"< Ca ****** @ yahoo.com>在消息中写道
新闻:eo ************** @ TK2MSFTNGP10.phx.gbl ...

我在项目中设置断点,但忽略断点。这个


来自Asp.Net站点的TimeTracker项目中的



我在TTUser类的Login方法中添加了它(TTUser的.vb)。我知道我有一个正确的插入点,我想开始踩踏,因为我改变了返回用户名。 toreturn string.empty,即使我把
放在正确的登录信息中,它也不会让我进入应用程序。所以这个测试告诉


我有正确的观点。

所以右键单击左侧窗口userName =
CStr(SqlHelper.ExecuteScalar ..."并选择Insert Breakpoint。

然后当我登录时,应用程序将我带到项目时间输入页面


blockquote class =post_quotes>停止。

为什么忽略断点?是否可以单步执行应用程序?




Tim Cali写道:

我不明白。请告诉我必须采取哪些措施来解决这个问题(新手
这里)

Ken Tucker< vb *** @ bellsouth.net>写在消息中
新闻:uq ******* ******* @ TK2MSFTNGP10.phx.gbl ...

Tim,

你在调试模式下运行代码断点被忽略
发布模式。


--- -----------
Tim Cali <钙****** @ yahoo.com>在消息中写道
新闻:eo ************** @ TK2MSFTNGP10.phx.gbl ...

我设置了一个断点一个项目,但忽略断点。这个



来自Asp.Net站点的TimeTracker项目。

我在TTUser类的登录方法(TTUser.vb)。我知道我有一个正确的插入点,我想开始踩踏,因为我改变了返回用户名。 toreturn string.empty,即使我把
放在正确的登录信息中,它也不会让我进入应用程序。所以这个测试告诉我



我有正确的观点。

所以右键单击左边窗口userName =
CStr(SqlHelper.ExecuteScalar ...并选择插入断点。

然后当我登录时,应用程序将我带到项目时间输入页面



没有

停止。

为什么忽略断点?是否可以单步执行应用程序?





我认为他试图说明确保你的IDE在Debug中运行

模式,而不是发布模式。此外,当你在运行时,你的断点是

显示为红点,还是内部也有问号(?)

红点?如果有?,那么它没有运行调试符号

加载。确保你在Debug模式下构建并运行。

-

Craig Deelsnyder

Microsoft MVP - ASP / ASP.NET


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?

解决方案

Tim,

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

Ken
--------------
"Tim Cali" <Ca******@yahoo.com> wrote in message
news:eo**************@TK2MSFTNGP10.phx.gbl...

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?



I don''t understand. Please tell me what I must do to remedy this. (Newbie
here)

"Ken Tucker" <vb***@bellsouth.net> wrote in message
news:uq**************@TK2MSFTNGP10.phx.gbl...

Tim,

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

Ken
--------------
"Tim Cali" <Ca******@yahoo.com> wrote in message
news:eo**************@TK2MSFTNGP10.phx.gbl...

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?




Tim Cali wrote:

I don''t understand. Please tell me what I must do to remedy this. (Newbie
here)

"Ken Tucker" <vb***@bellsouth.net> wrote in message
news:uq**************@TK2MSFTNGP10.phx.gbl...

Tim,

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

Ken
--------------
"Tim Cali" <Ca******@yahoo.com> wrote in message
news:eo**************@TK2MSFTNGP10.phx.gbl...

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?




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.
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


这篇关于断点被忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆