Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse CDT: 'can't find a source file' while debugging

I'm using Eclipse with CDT for C++ development. However, I'm forced to use ASCII-symbols in paths to my source files to succesfully debug my programs. When source files are located in folders with non-English characters in their names, Eclipse gives an error:

Can't find a source file at "/home/\321\202\320\265\321\201\321\202/1.cpp" Locate the file or edit the source lookup path to include its location.

Is there any option that enables Eclipse to do proper Unicode processing?

like image 777
Igor Shalyminov Avatar asked Mar 21 '12 21:03

Igor Shalyminov


People also ask

Can't find a source file Eclipse?

When source files are located in folders with non-English characters in their names, Eclipse gives an error: Can't find a source file at "/home/\321\202\320\265\321\201\321\202/1. cpp" Locate the file or edit the source lookup path to include its location.

What to do if debugger is not working in Eclipse?

The solution was to enable it again, start a debug session, the breakpoint is hit and shown in the UI, then disable again the option. There is also another simpler way that will make Eclipse show the debugging highlight at the breakpoint or rather refresh the debugging UI to work as it should.

How do I enable debugging in Eclipse?

A Java program can be debugged simply by right clicking on the Java editor class file from Package explorer. Select Debug As → Java Application or use the shortcut Alt + Shift + D, J instead. Either actions mentioned above creates a new Debug Launch Configuration and uses it to start the Java application.


1 Answers

Perhaps move your code to a workspace that sits at root, as in /workspace/projectName/src/1.cpp

If you can't find out exactly why and solve it, the next best thing is to circumvent...

like image 182
Adam Miller Avatar answered Sep 28 '22 08:09

Adam Miller