473,320 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Breakpoints in VB.NET

Hi
I try to debug my program with breakpoints, but even if it the breakpoint is
first in the form Load for the start-form, it seams to continue running
and I have a very dificult time debugging becouse it seams to not stop at my
breakpoints but continue running some how??

Is it possible thath it is more than one thread?
Is it posible to forse one thread, so I can debug my aplication in a safe
way.

(It is quite a large program and I have used several weeks to convert it
from VB6
I have tryed to get rid of all VB6 spesific controls and so on)

Regards
Vidar
Nov 20 '05 #1
8 4110
Vidar, make sure you are running your application in debug mode and not
release mode.

~Brian

"Vidar Martinsen" <vi*************@ft.dep.no> wrote in message
news:8q*********************@juliett.dax.net...
Hi
I try to debug my program with breakpoints, but even if it the breakpoint is first in the form Load for the start-form, it seams to continue running
and I have a very dificult time debugging becouse it seams to not stop at my breakpoints but continue running some how??

Is it possible thath it is more than one thread?
Is it posible to forse one thread, so I can debug my aplication in a safe
way.

(It is quite a large program and I have used several weeks to convert it
from VB6
I have tryed to get rid of all VB6 spesific controls and so on)

Regards
Vidar

Nov 20 '05 #2
Hello,

"Vidar Martinsen" <vi*************@ft.dep.no> schrieb:
I try to debug my program with breakpoints, but even
if it the breakpoint is first in the form Load for the
start-form, it seams to continue running and I have a
very dificult time debugging becouse it seams to not
stop at my breakpoints but continue running some how??


Are you running in Debug mode? Select the Debug configuration in the
combobox embedded in the VS.NET toolbar (when running with the Release
configuration, no breakpoints will be reached).

--
Herfried K. Wagner
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
Hi
Yes, I run in Debug mode.
My configuration manager say Debug (not release)
Vidar

"strchild" <st******@hotmail.spam> skrev i melding
news:OC****************@newsread3.news.pas.earthli nk.net...
Vidar, make sure you are running your application in debug mode and not
release mode.

~Brian

"Vidar Martinsen" <vi*************@ft.dep.no> wrote in message
news:8q*********************@juliett.dax.net...
Hi
I try to debug my program with breakpoints, but even if it the breakpoint
is
first in the form Load for the start-form, it seams to continue running
and I have a very dificult time debugging becouse it seams to not stop
at my
breakpoints but continue running some how??

Is it possible thath it is more than one thread?
Is it posible to forse one thread, so I can debug my aplication in a

safe way.

(It is quite a large program and I have used several weeks to convert it
from VB6
I have tryed to get rid of all VB6 spesific controls and so on)

Regards
Vidar


Nov 20 '05 #4
"Vidar Martinsen" <vi*************@ft.dep.no> wrote in
news:8q*********************@juliett.dax.net:
I try to debug my program with breakpoints, but even if it the
breakpoint is first in the form Load for the start-form, it seams to
continue running and I have a very dificult time debugging becouse it


Make sure you are in debug mode. Just a random thought.

Chris
Nov 20 '05 #5
Hi

Yes

I run in debug mode!

The thing is, It stops, and the yellow backcolour apears as it shoud, but it
continue anyeay and displays a msgbox I have in a procedure later in the
program. If I put a brakpointin this procedure it wont stop at this
breakpoint! Because I converted from VB6 the output debug window shows this
list: (this list comes ut after the program has stopped at the breakpoint,
and my msgboks coms up from a procedure later in the program.)

'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.0.3705\msco rlib.dll', No symbols
loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system\1.0.3300.0__b77a5c 561934e089\system.dll', No
symbols loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.3300.0 __b03f5f7f11d50a3a\system.
drawing.dll', No symbols loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system.directoryservices\ 1.0.3300.0__b03f5f7f11d50a
3a\system.directoryservices.dll', No symbols loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system.messaging\1.0.3300 .0__b03f5f7f11d50a3a\syste
m.messaging.dll', No symbols loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system.serviceprocess\1.0 .3300.0__b03f5f7f11d50a3a\
system.serviceprocess.dll', No symbols loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system.data\1.0.3300.0__b 77a5c561934e089\system.dat
a.dll', No symbols loaded.

'MUPKvalitet': Loaded
'C:\_Prod-losning-V1-2004\MUP-Kvalitet-02\bin\MUPKvalitet.exe', Symbols
loaded.

'MUPKvalitet.exe': Loaded
'c:\windows\assembly\gac\system.xml\1.0.3300.0__b7 7a5c561934e089\system.xml.
dll', No symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\windows\assembly\gac\microsoft.visualbasic\7.0 .3300.0__b03f5f7f11d50a3a\
microsoft.visualbasic.dll', No symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\windows\assembly\gac\system.windows.forms\1.0. 3300.0__b77a5c561934e089\s
ystem.windows.forms.dll', No symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\windows\assembly\gac\microsoft.visualbasic.com patibility\7.0.3300.0__b03
f5f7f11d50a3a\microsoft.visualbasic.compatibility. dll', No symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\_prod-losning-v1-2004\mup-kvalitet-02\bin\axinterop.shdocvw.dll', No
symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\windows\assembly\gac\accessibility\1.0.3300.0_ _b03f5f7f11d50a3a\accessib
ility.dll', No symbols loaded.

'MUPKvalitet.exe': Loaded
'c:\_prod-losning-v1-2004\mup-kvalitet-02\bin\interop.shdocvw.dll', No
symbols loaded.
"Vidar Martinsen" <vi*************@ft.dep.no> skrev i melding
news:8q*********************@juliett.dax.net...
Hi
I try to debug my program with breakpoints, but even if it the breakpoint is first in the form Load for the start-form, it seams to continue running
and I have a very dificult time debugging becouse it seams to not stop at my breakpoints but continue running some how??

Is it possible thath it is more than one thread?
Is it posible to forse one thread, so I can debug my aplication in a safe
way.

(It is quite a large program and I have used several weeks to convert it
from VB6
I have tryed to get rid of all VB6 spesific controls and so on)

Regards
Vidar

Nov 20 '05 #6
Cor
Vidar,
May I ask, Messagebox?
How did you set the breakpoint?
Cor
Nov 20 '05 #7
Hi

Yes, I have a prosedure later in the program for Error trapping. This
procedure has a line for displaying a msgbox This msgbox comes up, even if I
set a breakpoint at it, and even if I have a breakpoint at Sub Main and I
order the program to start at Sub Main (to be shore it wont run anything
before the breakpoint.) And the program stops at the first breakpoint OK.

Regards

Vidar

"Cor" <no*@non.com> skrev i melding
news:<3f**********************@reader21.wxs.nl>...
Vidar, May I ask, Messagebox? How did you set the breakpoint? Cor

Nov 20 '05 #8
Cor
Vidar,
I d'nt understand, you say it does not stop and then.
and I have a very dificult time debugging becouse it seams to not stop at mybreakpoints but continue running some how?? And the program stops at the first breakpoint OK.


Does it stop, or does it not stop?

Cor
Nov 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: fred | last post by:
What has happened to my breakpoints? Whenever I start my application from the IDE in Visual Studio then all of the breakpoints show a "?" and a comment says "The breakpoint will not currently be...
2
by: Jozef | last post by:
Hello, I'm coding a windows form, and up until now, the breakpoints have worked fine. For some reason, now when I run the program, the breakpoints fail and the code continues running. I have...
9
by: Rea | last post by:
Hi eb I set some 'Stop' statements and also visual breakpoints in asp code (vbscript). I am doing that in Microsoft Script debugger. Than I refresh the original page and expect execution to halt...
2
by: MSK | last post by:
Hi, Continued to my earlier post regaring "Breakpoints are not getting hit" , I have comeup with more input this time.. Kindly give me some idea. I am a newbie to .NET, recently I installed...
1
by: jeem | last post by:
I am using ActiveState Komodo 3.5 to work on a large python 2.4 application with an extensive UI... I am attempting to debug the application and am setting breakpoints in 4 different *.py files.....
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
5
by: Jerry Spence1 | last post by:
In VB6 you could set a breakpoint when a variable had changed value. I can't find this in VB2005. Is it there somewhere? -Jerry
1
by: theresegt1 | last post by:
Does anyone know why VS 2005 might skip breakpoints when debugging through the browser? It's a new installation so no configurations other than 'set startup project' and 'set startup page' have...
1
by: Jeff | last post by:
Hey How can I get a list of breakpoints in Visual Studio 2005, while the loaded solution is in Edit mode (not running or not debugging)... I'm trying to learn thousands of uncommented C# code...
2
by: =?Utf-8?B?TG9zdCBJbiBUaGUgV29vZHM=?= | last post by:
I've seen a ton of posts about similar problems, but none of the solutions were effective. I've been maintaining this VB code for 3 years, and this is the first time this has happened. It seems...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.