Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Use VSCode to debug simulations #59

Open
pjreiniger opened this issue Jan 18, 2019 · 0 comments
Open

Use VSCode to debug simulations #59

pjreiniger opened this issue Jan 18, 2019 · 0 comments

Comments

@pjreiniger
Copy link
Collaborator

Sorry to bug you again. Trying to key the VS Code debugger into running the
sim
The following configuration worked with the previous version (alpha
integration)
But the com.snobot.simulator.Main is no longer the entry point (does not
exist).
Using the frc.robot.Main does not seem right; how should we start the sim
through the debugger?
mk
{
"type": "java",
"name": "Debug (Launch)",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopOnEntry": false,
"mainClass": "com.snobot.simulator.Main",
"args": "",
"vmArgs": "-Djava.library.path=build/native_libs",
"env": {
"DYLD_LIBRARY_PATH": "build/native_libs"
}
}

Michael Kessel
Coach
The Bit Buckets
web.bitbuckets.org http://www.bitbuckets.org
FRC Team #4183
FLL Team #38905
VEX Team #5485

On Thu, Jan 17, 2019 at 11:31 PM Mike Kessel [email protected] wrote:

I think I found out why: the following dialog was behind a bunch of
windows and as soon as I closed it, then things popped up.
[image: image.png]

Michael Kessel
Coach
The Bit Buckets
web.bitbuckets.org http://www.bitbuckets.org
FRC Team #4183
FLL Team #38905
VEX Team #5485

On Thu, Jan 17, 2019 at 11:27 PM Mike Kessel [email protected]
wrote:

Changed the simulator_config.properties to reference frc.robot.Robot.
Thanks, got it to run with "./gradlew runJavaSnobotSim"

But the nice GUI that popped up with the example did not appear. Is there
something I am missing?

Michael Kessel
Coach
The Bit Buckets
web.bitbuckets.org http://www.bitbuckets.org
FRC Team #4183
FLL Team #38905
VEX Team #5485

On Thu, Jan 17, 2019 at 2:42 PM PJ Reiniger [email protected]
wrote:

Try the latest version. This
https://github.com/pjreiniger/SnobotSimExamples/blob/master/JavaExample/build.gradle
is a good example to base your build file on.

The simulator currently supports CTRE 5.12.0


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#23 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATUoKCp1Ilu-qi9hqnkd7Ow2eHKmh7weks5vEO5bgaJpZM4UGTyF
.

Originally posted by @RocketRedNeck in #23 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant