-
Notifications
You must be signed in to change notification settings - Fork 122
Importing into Visual Studio Code
Ayk Borstelmann edited this page Apr 23, 2021
·
3 revisions
Visual Studio Code can be downloaded for free from here.
- Go to the Extension tab
- Install
Java Extension Pack
from Microsoft - Install
tsfmt - TypeScript Formatter
from eternalphane - For Chrome Debugging, Install
Debugger for Chrome
from Microsoft
We have designed our code style formatter for Java, Javascript and Typescript code.
- Go to File | Preferences | Settings search
formatter
- You should find Java > Format > Settings: Url
- Paste
Resources/formatter/openRobertaJava.xml
to use our eclipse code formatter.
- Select
tsfmt
as default formatter
- Navigate to File | Open Folder and select the openroberta-lab repository you previosly cloned.
- Click on Run and Debug and click on create a launch.json file
- Paste the following
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Launch ServerStarter",
"request": "launch",
"mainClass": "de.fhg.iais.roberta.main.ServerStarter",
"args": "-d server.admin.dir=./Resources -d server.staticresources.dir=./OpenRobertaServer/staticResources -d robot.crosscompiler.resourcebase=../ora-cc-rsc"
},
{
"name": "Launch Chrome Debugger",
"type": "chrome",
"request": "launch",
"url": "http://localhost:1999/index.html",
"webRoot": "${workspaceFolder}/OpenRobertaServer/staticResources",
}
]
}
- Simply click on the Run and Debug tab and select in the dropdown Debug Chrome
- Navigate to
OpenRoberta/staticResources/js/
and set breakpoints in your desired file. - Chrome will stop at the the breakpoints whenever they are reached and you can use vs-code to continue, step into, ...
- Do the same as before, just make sure to run
npx tsc --watch --sourceMap
ornpx tsc --sourceMap
in TypescriptSources folder - Now you can set breakpoints in typescript-files and debug there, too
Home | Community | Installation | Team
Installation Tutorials
- Instructions to run a openroberta lab server using DOCKER
- Instructions to run the Open Roberta Lab Server natively on ubuntu ‐ not recommended
- Raspberry Pi 2/3/4 and the Open Roberta Lab
- EV3 and leJOS
- EV3 and ev3dev
- Creating the OR leJOS image
- Arduino Create Agent
- Mbed DAL: Generation and automation
Development
-
Workflows
-
Architecture
-
Blockly
-
Software engineering issues
-
Misc
-
Notes on robots
Textual Representation
Contribution
Discussions on future development