473,480 Members | 1,498 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to auto-re-compile with /debug option from inside DbgCLR.exe Debugger ?

When I load a csharp program into the MS DbgCLR.exe debugger and trace it everything is fine the first time.
Assume now, I change somewhere a code statement in the source file (outside the Debug-IDE) without re-compiling it.

DbgCLR.exe recognizes that something has changed in the source file and pops up a warning dialog asking if
the new source should be used. If I click "yes" and re-start the debugging process from the beginning
DbgCLR.exe displays then the new source BUT uses internally the old debugging information !!!

In other words I need to re-compile the new source explicitely with a

csc.exe /debug mysource.cs

statement to update the mysource.pdb debug information as well.
Hmmm, I could imagine that there is an option in the debug IDB DbgCLR.exe where I can enable an option

"re-compile source with /debug flag before start".

But I didn't found such an option in the settings.

Do I really have to re-compile the source manually?
Is tehre at least a setting which warns me if source (*.cs) and debug *.pdb file do not fit together ?

Keith

Nov 16 '05 #1
1 1991
Keith,

I don't believe that there is any such option. This would mean that the
debugger would have to have knowledge of the type of code that it is, and
know which compiler to invoke. This isn't to reasonable, IMO, and I would
be surprized if something like that was there.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Keith Clark" <k.*****@lucent.com> wrote in message
news:cg*************@news.t-online.com...
When I load a csharp program into the MS DbgCLR.exe debugger and trace it
everything is fine the first time.
Assume now, I change somewhere a code statement in the source file
(outside the Debug-IDE) without re-compiling it.

DbgCLR.exe recognizes that something has changed in the source file and
pops up a warning dialog asking if
the new source should be used. If I click "yes" and re-start the debugging
process from the beginning
DbgCLR.exe displays then the new source BUT uses internally the old
debugging information !!!

In other words I need to re-compile the new source explicitely with a

csc.exe /debug mysource.cs

statement to update the mysource.pdb debug information as well.
Hmmm, I could imagine that there is an option in the debug IDB DbgCLR.exe
where I can enable an option

"re-compile source with /debug flag before start".

But I didn't found such an option in the settings.

Do I really have to re-compile the source manually?
Is tehre at least a setting which warns me if source (*.cs) and debug
*.pdb file do not fit together ?

Keith

Nov 16 '05 #2

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

Similar topics

2
2587
by: Manlio Perillo | last post by:
Hi. This post follows "does python have useless destructors". I'm not an expert, so I hope what I will write is meaningfull and clear. Actually in Python there is no possibility to write code...
0
719
by: Nick | last post by:
Is it possible to have multiple auto increments in one column? Say I have two tables... 1. table 'messageboards' with fields ('id' , 'name') 2. table 'messagethreads' with fields ('id' ,...
1
13939
by: Glabbeek | last post by:
I'm changing the layout of my site. Instead of using tables, I will use DIVs. It's working fine, except for 1 thing: In IE6 some DIVs are not the correct width. Mozilla and Opera are showing the...
2
12697
by: Tom | last post by:
I am trying to store information into a table that has an auto increment field. There is currently no data in the table. Using the code below I cannot insert data into the table. I get an error...
2
2039
by: VB Programmer | last post by:
I created a page which I am using to prevent the user from hitting the BACK button. I'll call it my "Auto Jump" page. When it is called it basically auto-redirects to a page specified in the...
5
5028
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the...
3
14209
by: inkswamp | last post by:
I've been using CSS for quite a while now but I have yet to master its eccentricities. Here's something I recently ran across and if someone could explain why this happens, I would appreciate it. ...
5
3243
by: maya | last post by:
at work they decided to center divs thus: body {text-align:center} #content {width: 612px; text-align:left; margin: 0 auto 0 auto; } this works fine in IE & FF, EXCEPT in FF it doesn't work if...
1
2959
by: neridaj | last post by:
Hello, I've found a few postings of this problem but none of the answers seem to fix my problem. I have a content div wrapped around a left floated image and a right floated table. I want the...
1
5140
by: pravinnweb | last post by:
can anyone tell me how to set auto height to outer div that is in green box id "gray-background" it should increase relatively to inner div "smbox" here is the css and html code it should work in...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7045
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5341
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4782
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
182
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.