Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2007

Tip: Looking for answers? Try searching our database.

Dynamic debugging problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alexis.meilland@gmail.com - 14 Jun 2007 12:59 GMT
Hello,

Well, I have a problem with a dynamic debuging.

My program is winform program written in Managed c++.

I compile dynamically a dll in vb.net. It works well. To execute a
function in my dll I use the invoke function. It works well.

However, I would like, if there is a runtime error in my vb.net
execution, launch the debugger.

So I used in my vb.net code,

System.Diagnostics.Debugger.Launch()

When I invoke the method, I have a window, which asks me which debuger
I want to use.

I choose new instance of debug clr 2005

But the debuger opens and stop on method-> invoke and not in vb.net
code.

How could I do to have a debuging of my code which have benn compiled
dynamically
Ben Voigt [C++ MVP] - 14 Jun 2007 14:45 GMT
> Hello,
>
[quoted text clipped - 4 lines]
> I compile dynamically a dll in vb.net. It works well. To execute a
> function in my dll I use the invoke function. It works well.

Dynamic compilation isn't "in" any language.  It uses opcodes directly.
Maybe you mean you generate source code and invoke the vb.net compiler
automatically?  From the runtime's perspective, it is the same as if you
wrote the code in Visual Studio.

> However, I would like, if there is a runtime error in my vb.net
> execution, launch the debugger.
[quoted text clipped - 10 lines]
> But the debuger opens and stop on method-> invoke and not in vb.net
> code.

You didn't ask to stop!

Use Debugger.Break instead of Debugger.Launch.

> How could I do to have a debuging of my code which have benn compiled
> dynamically

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.