Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit code while debugging. 1

Status
Not open for further replies.

tmcnutt

Programmer
May 17, 2002
83
US
Is there a way to edit code while I am stepping thru it? I could do it in VB6, but it is listed as read only in .Net and I haven't found a way to change code while I am debugging. I have to stop debugging and then start over again.

Thanks,
Tom
 
Don't think possible in the current release (at least not in VB6 way) though from what I understand it will be included in the next release.
 
Which next release?

I am using the 2005 beta...

It compiles the EXE then runs from the EXE...

The Debugging is very smart, but changes are not recognized until you rebuild and restart your project...

It's a hard change from VB6, but I am starting to get used to it... I like the fact that when you hover over an object, it tells everything about that object...
Together with several other changes, I think they made up for the lack of real time debugging...

I do miss it, but I can also live without it...

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
According to a Microsoft rep/instructor who spoke to us at work that change was supposed to have been made in the 2005 release to resemble what we had in VB6. Oh well, I guess I was misinformed that only goes to prove Mom was right about not believing everything you hear. Haven't looked at 2005 beta yet, but looking forward to getting my hands on it soon.
 
>>Oh well, I guess I was misinformed that only goes to prove Mom was right about not believing everything you hear.

ESPECIALLY if it's from a rep... ;-)

Their job is to tell you what you WANT to hear and to sell you the product, whether you want it or not...

I do like 2005 though, I think it is the best so far...
I skipped the first release of .Net (heard too many "I HATE IT" reports) got a free version of 2003 from watching the videos on MSDN site... (I didn't really care for 2003 too much I 'tried' to use it a few times and gave up)

Then I stumbled accross this...
Free beta downloads, full working versions until (at least) March 2005

IMO... These are the BEST versions of any of the languages.

As far as the error handling goes, when you click the Run/Play button, it does work similar to VB6, the way it breaks at the error point with the little yellow arrow, though changes you make do not take effect until you stop,save,and run again... :-(
However, the error messages give you more inteligent suggestions, the hover to view value is more than I could have ever imagined... (it even lists out each index of an array, which makes it REALLY easy to trap errors when using the split function...

Also, it IS still in beta... and it does look like they are trying to but that functionality back in...

---Update--------------------------------------
Wait a sec, now it is somewhat working...
But it still has glitches in it...
I think you have to save it before you click run again, and when you change something, the breakpoint gives you an error/warning and no longer works... but it also looks like that is because of a default setting...

Below, I set a break point then added & "Hello" when it paused...
When I hit play, it DID show up on the form...
This feature did not seem to be working the other day... (must have been a bug) but it was a little more complex than just a simple string... And I think they still have a little more work to do on it before the claim it works just like vb6 ;-)
bperror.jpg

-----------------------------------------------

I'm sure I am leaving a few things out, but don't take my word for it, download it and try it yourself!!!

I'm sold on it!

It took me next to no time migrating from VB6 to VB.net express 2005
And C#.net express 2005 was just as easy...

The Visual Web Dev is sweet also... ;-)

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top