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 2 1599
The following blog entry, titled "Debugging Dynamically Generated Code
(Reflection.Emit)", should explain how to do this: http://blogs.msdn.com/jmstall/archiv...03/366429.aspx
Basically, you will have to define the document where the code is
located with a call to DefineDocument on the module (along with other calls,
of course).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
<al*************@gmail.comwrote in message
news:11**********************@a26g2000pre.googlegr oups.com...
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
The solution is interesting. However, I am not using reflexion.emit
To generate my assembly, I used CodeDom::Compiler
So you have an idea?
"Nicholas Paldino [.NET/C# MVP]" wrote:
The following blog entry, titled "Debugging Dynamically Generated Code
(Reflection.Emit)", should explain how to do this:
http://blogs.msdn.com/jmstall/archiv...03/366429.aspx
Basically, you will have to define the document where the code is
located with a call to DefineDocument on the module (along with other calls,
of course).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
<al*************@gmail.comwrote in message
news:11**********************@a26g2000pre.googlegr oups.com...
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jason Tesser |
last post by:
I work for at a college where I am one of 2 full-time
developers and we are looking to program a new
software package fro the campus. This is a huge
project as it will include everything from...
|
by: Jack |
last post by:
Hi,
I am trying to test a sql statement in Access which gives me
the error as stated in the heading.
The sql statement is built as a part of asp login verification,
where the userid and password...
|
by: James |
last post by:
Situation: I have a page, built using document.write(). When I hit
'save as', IE goes and saves the contents of 'about:blank' to that
file, rather than saving the HTML it's displaying in the...
|
by: stephen.cunliffe |
last post by:
Hi,
Okay, here's my problem...
I'm dynamically building some content (similar to this):
var fooObj = document.createElement('div');
fooObj.setAttribute('id', 'uniqueNumber');
etc.
|
by: ktrvnbq02 |
last post by:
Hi,
We have an ASP.NET application built in Release mode via Visual Studio.
All of the C# code is in the code-behind files (i.e. *.aspx.cs files)
and there is no C# in the *.aspx files...
|
by: Tom |
last post by:
Hi .Net Professional :
In recent , I starting to learn about dynamic call .net object in vb.net.
Before, some IT people teach me use the following method and its work !!
Dim asm As =...
|
by: Giulio Petrucci |
last post by:
Good morning everybody,
I have been dealing with this strange issue for almost two days: I got
stuck and I can't get out of it. I built up for the first time in my life
(I'm quite new in stuff...
|
by: alexis.meilland |
last post by:
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...
|
by: vainstah |
last post by:
Hello Guys and Galls,
To start off, I have reached the solution I was looking for, but I would like comments and feedback on the solution I have reached and tips/tricks on making it more elegant....
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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
|
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...
| |