Anyone developing on Traccar with VS Code?

webo5 years ago

I'm more familiar with C# so I'm struggling a little with debugging Traccar Server.

I've cloned the repo and when I attempt to run it in debug mode, I get some errors related to Gradle and an error saying the main method cannot be found (even when I'm in the Main.java file)

Has anyone used VS Code to develop with Traccar? Any tips on where to get started?

webo5 years ago

Managed to resolve it for anyone else in the future, download the redhat.java extension (automatically downloads other extensions that help) and add this to your launch.json

{
    "type": "java",
    "name": "Debug (Launch)-Main<tracker-server>",
    "request": "launch",
    "mainClass": "org.traccar.Main",
    "projectName": "tracker-server",
    "args": ["debug.xml"]
}
Carlos Mukoyi2 years ago

i cant run it on windows vscode.
how do you start the web server