开发者

Debugging problems in Visual Studio 2005 - No source code available for the current location

开发者 https://www.devze.com 2022-12-24 07:16 出处:网络
I\'ve searched up a开发者_开发问答nd down Google for others with a similar problem, and while I can find the error I don\'t think that other people have the same base problem that I do.

I've searched up a开发者_开发问答nd down Google for others with a similar problem, and while I can find the error I don't think that other people have the same base problem that I do.

Basically, I had to create a project for a unit-testing environment in order to run this test suite.

First, I add my original C file, compile, and then a test file (C++) is generated. I then exclude my original source from the project, include this test script (which includes the original source at the top), and then run.

I can debug the test file fine, but when it jumps to the original C file I get the dreaded 'no source code available for the current location' error.

Both files are located within the same location, and I compiled the original file without any issue.

Anybody have any thoughts about this? Its driving me crazy!


It turns out that the test suite was deleting the intermediate debug code generated by Vis Studio. I had to add some flags into it in order to keep these files.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号