Solved

Unable to step through code in IDE in Debug Mode - Using VB.NET 2005 Express

Posted on 2007-04-02
3
406 Views
Last Modified: 2013-11-27
Using MS Visual Basic 2005 Express on Windows VISTA Computer.

I need to debug a problem in my application. I can set breakpoints and it seems to break at the point they are set, but I can NOT access the IDE to step through the code. In fact, the application appears to be LOCKED, but if I press F8 several times, it eventually comes back to where I can close the application.

I've checked the configuration and it's in Debug mode.

I can use ALT-TAB and see the IDE and other windows, but I can NOT change to any of them. No matter what I've done, I cannot go to the IDE and step through the code to see what's happening. I don't need to change any code, I just need to see where it is when it's having problems.

Any ideas what might be wrong?  Why can't I step through the IDE when it's running in Debug Mode?

Thanks,

Ron
0
Comment
Question by:weiroblpay
3 Comments
 
LVL 24

Accepted Solution

by:
Jeff Certain earned 500 total points
ID: 18838901
There's a service pack to address the issues with Visual Studio on Vista. Visual Studio was initially not supported, due to the fundamental changes in memory management in Vista.  These issues were particualrly prevalent in the debugger.

Here's the link to SP1: http://msdn2.microsoft.com/en-us/vstudio/bb265237.aspx
And here's the link for the Vista update to SP1: http://www.microsoft.com/downloads/details.aspx?familyid=90e2942d-3ad1-4873-a2ee-4acc0aace5b6&displaylang=en

0
 
LVL 28

Expert Comment

by:iboutchkine
ID: 18842829
DO you run VS in Admin mode (right click and select Run As Administrator)
0
 
LVL 1

Author Comment

by:weiroblpay
ID: 18846043
Yes, I run it in Admin mode.

I did the updates as suggested by Chaosian and I can step through the code now, but it's a bit awkward because it stops at the breakpoint, but the focus doesn't change to the IDE, it stays on the running app.
I have to minimize the running app (it's a MDI app) before I can step through the code.

It's a little bit weird the way it works, but at least it's working now which really helps when I'm trying to determine what's wrong with a piece of code.

Isn't it supposed to go back to the IDE (focus) when it hits a breakpoint?  If there's any way I can get it to do that, I would be very happy. It's funny that I can't even ALT-TAB to any running program when I'm in debug mode. I have to minimize the app running in debug mode before I can go to any other app.

Thanks,

Ron
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now