-
-
Notifications
You must be signed in to change notification settings - Fork 9
How to Debug Upendo DNN Generator
If you're working on the Upendo DNN Generator, you may find yourself wanting to debug certain workflows or use cases. When this is the case, in addition to the Yeoman debugging method, you really have two options.
Do you remember before we had all of these shiny toolkits and browser tools to help us write client-side code? Well, it doesn't matter if you don't.
When you want to debug something quickly, you can simply emit some text values and/or forced error messages to provide more information.
Then, run the code to see those values. Remove them, then debug the next thing.
This is quick, easy, and effective. However, please remember to remove your debugging statements. :)
Now, if you want a more comprehensive debugging experience, this project supports that too!
- Open the source code using Visual Studio Code.
- In VS Code, click on the Run and Debug section.
- Click on the
create a launch.json file
link.
- Update the new launch.json file with the code below:
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug upendodnn",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/yo/lib/cli.js",
"args": [
"upendodnn",
"--skip-install"
],
"cwd": "<your work dir>",
"console": "externalTerminal",
"internalConsoleOptions": "neverOpen",
"stopOnEntry": false
}
]
}
- Replace
<your work dir>
with the root directory of where the solution structure was created using Upendo DNN Generator. - Run the code and enjoy your debugging experience!
Like what we're doing? Please sponsor us. Any amount is appreciated! 🙏🏽
This project is owned and maintained by Upendo Ventures, LLC for the benefit of everyone in the DNN CMS Community & Ecosystem.