PC Review


Reply
Thread Tools Rate Thread

Breakpoints in VB.NET

 
 
Vidar Martinsen
Guest
Posts: n/a
 
      8th Sep 2003
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


 
Reply With Quote
 
 
 
 
strchild
Guest
Posts: n/a
 
      8th Sep 2003
Vidar, make sure you are running your application in debug mode and not
release mode.

~Brian

"Vidar Martinsen" <(E-Mail Removed)> wrote in message
news:8q%6b.19091$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      8th Sep 2003
Hello,

"Vidar Martinsen" <(E-Mail Removed)> 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


 
Reply With Quote
 
Vidar Martinsen
Guest
Posts: n/a
 
      8th Sep 2003
Hi
Yes, I run in Debug mode.
My configuration manager say Debug (not release)
Vidar

"strchild" <(E-Mail Removed)> skrev i melding
news:OC%6b.3386$(E-Mail Removed)...
> Vidar, make sure you are running your application in debug mode and not
> release mode.
>
> ~Brian
>
> "Vidar Martinsen" <(E-Mail Removed)> wrote in message
> news:8q%6b.19091$(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Chris Dunaway
Guest
Posts: n/a
 
      8th Sep 2003
"Vidar Martinsen" <(E-Mail Removed)> wrote in
news:8q%6b.19091$(E-Mail Removed):

> 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
 
Reply With Quote
 
Vidar Martinsen
Guest
Posts: n/a
 
      8th Sep 2003
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\mscorlib.dll', No symbols
loaded.

'MUPKvalitet': Loaded
'c:\windows\assembly\gac\system\1.0.3300.0__b77a5c561934e089\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__b77a5c561934e089\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__b77a5c561934e089\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.compatibility\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" <(E-Mail Removed)> skrev i melding
news:8q%6b.19091$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      8th Sep 2003
Vidar,
May I ask, Messagebox?
How did you set the breakpoint?
Cor


 
Reply With Quote
 
Vidar Martinsen
Guest
Posts: n/a
 
      8th Sep 2003
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" <(E-Mail Removed)> skrev i melding
news:<3f5c8d68$0$7967$(E-Mail Removed)>...

> Vidar,


> May I ask, Messagebox?


> How did you set the breakpoint?


> Cor


>


>



 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      8th Sep 2003
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

my
>breakpoints but continue running some how??


> And the program stops at the first breakpoint OK.


Does it stop, or does it not stop?

Cor


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Breakpoints, phantom breakpoints =?Utf-8?B?VHlsZW5kYWw=?= Microsoft Access VBA Modules 1 18th Jun 2005 08:34 PM
Breakpoints not triggering, have ? in breakpoints Jozef Microsoft VB .NET 2 11th Jun 2005 09:48 PM
BreakPoints ignored David D Webb Microsoft Dot NET Compact Framework 4 23rd Aug 2004 04:15 PM
Breakpoints Laurel Microsoft Access Getting Started 1 26th Jan 2004 12:04 AM
VS.net breakpoints Dave Microsoft ASP .NET 3 4th Dec 2003 04:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:12 PM.