Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to debug (set breakpoint) in file which has no extension
I am working on an open source project named openIG, which has standard files containing class declaration and definition without any file extension... I am not able to debug the class function inside those files by setting breakpoint.....
I would like to know if there is any way to debug files which does not has .cpp or .h file extension....
check the above link and see the red rectangle box indicating the file type
any help is appreciated.....
VRonin last edited by
File extension has nothing to do with the breakpoints, what exactly is that you can't do?
Vinoth R last edited by Vinoth R
When i debug my application , breakpoints which i set inside class definition is not hit , if those class are defined in a file which has no extension...
See the below link for reference....
My breakpoints not hitting in file which has no extension, happens only with file that has .cpp/.c extension....
I would like to know if debugging is possible with file which has no extension.....If so, please guide me how to do them.....
Hi. you should mention which compiler/debugger
I suspect it is Visual Studio.
I am using MSVC 2013 compiler .......
So the answer to your question is somewhere
ps. Its very not common to have no extensions. So if it cant work, i won't be surprised.
Its very bad idea in my book as it violates old rules and expectations.
VRonin last edited by
open source project named openIG
Could you share the link to the sources? The one I found looks to be in Java
BjornW last edited by BjornW
Place a breakpoint in a file that calls code in the extensionless file. Follow using step functions (f11). See where it goes!
EDIT: f11 is for visual studio; I do not know the QtCreator shortcut.
@BjornW I tried F11 too..... It dint break there......
Could you break anywhere?
Show your code please :-)
I am not able to debug inside AnimationPath File shown in the link.......
I am able to debug and set breakpoints only in files with .cpp extension..... This AnimationPath File has no extension...Its file type is mentioned as "File" itself....Check the link below .......
Try putting a breakpoint in the code calling .getMatrix(...). Then use step functions to go in. Will it hit? Are you sure the code is actually being called from outside? Who calls it and how?
AnimationPath myAnimationPath(...); myAnimationPath.getMatrix(...); //Put breakpoint here, step in. Does it work?
breakpoint hits in path->getMatrix() from main.cpp.... but when i try step Into that function, i am not able to get inside getMatrix(...) function body.........
Well that is strange. Make sure to use the proper step function (step into, not step over). Other than that I am at a loss. Sorry :-(
@BjornW Thank you for helping me........
I tried step into only..
Have u ever tried debugging a (c/c++)code in a file which has no extension or with extension other than (.cpp/.c) file format ????
Is the library built with debug info enabled?
@BjornW ... Yes, I built that OSG Library with debug info enabled and i am using debug version of that library in my application....