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

Add build/debug configs #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

slembcke
Copy link

@slembcke slembcke commented Oct 31, 2023

You mentioned in https://github.com/buserror/mii_emu/blob/main/docs/Compiling.md#development that vscode lacks Make build options. While true, you can make it run any arbitrary command as a default build task (press ctrl-shift-B). I made an example tasks.json file. It has a link to the docs if you want to see more. I also made a launch.json file to build/start the emulator in the debugger (press F5). Though the platform-triple used by the makefile kinda mucks with that as VSCode requires static paths.

"type": "cppdbg",
"preLaunchTask": "${defaultBuildTask}",
"request": "launch",
"program": "${workspaceFolder}/build-x86_64-redhat-linux/bin/mii_emu",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dunno how to deal with this though. I suspect you'll need to change it to be a static path?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that BTW -- I haven't merged because I haven't found a nice way to making that patch work for any platform (ie redhat, debian etc) -- perhaps I'll add a symlink to the exec in the top fdirectory at some point...

@slembcke
Copy link
Author

Makes sense to me. Was just offering some thoughts. :)

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

Successfully merging this pull request may close these issues.

2 participants