a problem with debugging in VS 2005

Hello all…

I use CUDA template project to create a new project named “main_test”
It compiled successfully…
Then I want to add a new *.cu file written by my friend …because I need to call a new function of new *.cu…
I used VS 2005 to add the new *.cu file … and called the new function successfully…
There’s no problem from compiling, and it’s ok to m run my project…

But… I set the breaking point in the new *.cu file, and run Debyg mode…
The program will not stop on that breakpoint …

I checked the new *.cu file and found an information said “the breakpoint will not currently be hit, No symbols have been loaded for this document” :wacko:

What’s wrong with my project…
I tried to create a new project (even use CUDA winzard 2005) , but it still can’t run anymore…

Does anyone knoww about this problem…???

As I know, this proble appears when you modify the source code and don’t rebuild. (even a small change in the file, like deleting a space). I would suggest a rebuild for debug mode, and make sure you run the debug version of the code. Also, optimization should be disabled for nvcc(normal for debug).