Skip to content

Hot Reloading via VS Code #281

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

Merged
merged 1 commit into from
May 19, 2025
Merged

Hot Reloading via VS Code #281

merged 1 commit into from
May 19, 2025

Conversation

paulsolt-ofsw
Copy link
Contributor

Allows the hot reloading of either the Web app or Admin app portions of the app (not the plugins). You can connect to one or Added .vscode/launch.json to share debug configurations the other, and potentially the backend, but I have not successfully tested that workflow.

Debug the Web App

  1. Start the Mage server and web-apps locally (use latest develop)
cd mage-server
npm install
npm run build
npm start
  1. Open a new Terminal and Start Admin
cd mage-server/web-app
npm run start:app
  1. In Visual Studio Code, go to the Debug Panel. Choose "Launch WebApp" and hit the "Play" button to open Chrome

Now you should be able to login to the Admin panel of the Mage-Server front end.

  1. Open the Developer tools in Chrome with Command + Option + I
  2. Navigate to Sources > Page > webpack:// and look for the src code you want to inspect (i.e., "src/app/feed-panel")
  3. You should be able to add breakpoints on the sidebar in Developer tools to inspect the app state.

Debug the Admin App

  1. Open a new Terminal and Start Admin
cd mage-server/web-app
npm run start:admin
  1. In Visual Studio Code, go to the Debug Panel. Choose "Launch AdminApp" and hit the "Play" button to open Chrome

  2. You should be able to debug using the Sources > Page > webpack:// like the web app.

@paulsolt-ofsw paulsolt-ofsw merged commit 70edaba into develop May 19, 2025
1 check passed
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