Skip to content

Git Submodule for vscode debug of hydroshare Docker containers

Notifications You must be signed in to change notification settings

hydroshare/vscode

Repository files navigation

vscode hydroshare debug

Repo for vscode debug of Hydroshare Docker containers

Instructions to use

  1. You must first clone Hydroshare if you haven't

  2. Run local-dev-first-start-only if you haven't. No need to do the docker-compose up, we will modify that step so that it uses a custom .yml file

  3. cd into your new hydroshare dir and clone this repo: git clone [email protected]:hydroshare/vscode.git .vscode NOTE: yes, that .vscode is supposed to be a hidden dir. See https://code.visualstudio.com/docs/editor/debugging#_launch-configurations.

  4. run .vscode/configure-vscode-debug.sh to create a required init-hydroshare-debug and remove your hydroshare container <<< YES, it will remove your container!

  5. run docker-compose -p hydroshare -f .vscode/docker-compose.debug.yml up to build the new container and bring it up

  6. use vscode "run and debug" module to connect to the container and start debuggingimage

  7. Add breakpoints in vs-code

  8. Browser-> navigate to localhost:8000 and trigger your breakpoints

submodule

You can run this as a git submodule too but I don't think we want to checkin any of the submodule info into the hydroshare repo

So if you do this, just make sure you don't commit the added files to Hydroshare

From your project root:

  • git submodule add -f [email protected]:hydroshare/vscode.git .vscode
  • git submodule update --remote .vscode
  • then follow all of the above instructions to use

About

Git Submodule for vscode debug of hydroshare Docker containers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages