Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question when debugging OpenFAST in linux #1601

Closed
AsIlll223 opened this issue Jun 1, 2023 · 2 comments
Closed

A question when debugging OpenFAST in linux #1601

AsIlll223 opened this issue Jun 1, 2023 · 2 comments
Assignees

Comments

@AsIlll223
Copy link

Dear all
I try to debug openfast in linux system as the document [https://openfast.readthedocs.io/en/main/source/dev/debugging.html] ,my launch.json is written as:

{
"name": "AOC_WSt",
"type": "gdb",
"request": "launch",
"printCalls": false,
"showDevDebugOutput": false,
"valuesFormatting": "prettyPrinters",
"gdbpath": "gdb",
"target": "${workspaceRoot}/build/glue-codes/openfast/openfast",
"cwd": "${workspaceRoot}/build/reg_tests/glue-codes/openfast/AOC_WSt/",
"arguments": "${workspaceRoot}/build/reg_tests/glue-codes/openfast/AOC_WSt/AOC_WSt.fst",
}

but it occurs an error:

Could not start debugger process, does the program exist in filesystem?
Error: spawn gdb ENOENT

It seems like it cannot find gdb.exe ,but I truly has installed gdb.
Then I change the gdbpath to "/usr/bin/gdb",it also occurs an error:

Could not start debugger process, does the program exist in filesystem?
Error: spawn /usr/bin/gdb ENOENT

I am a new to debugging in linux system, I donot know how to solve the problem, could anyone give me some advice?
Thank you.

AsIlll223

@deslaughter
Copy link
Collaborator

Native Debug gives that error message if the cwd doesn't exist (WebFreak001/code-debug#398). Please check that ${workspaceRoot}/build/reg_tests/glue-codes/openfast/AOC_WSt exists and contains the test files. If not, run ctest -R AOC_WSt from the build directory to run the test and initialize the directory before debugging.

@AsIlll223
Copy link
Author

Thank you! The problem has been solved.

@deslaughter deslaughter self-assigned this Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants