I need help to debug this plugin
lankerxd opened this issue · 10 comments
As shown in title , I know how to debug verdaccio source code .
I tried to introduce it in verdaccio , and Modify main in package.json is
"src/server/index.ts". but it didn't succeed. so can give me some advice ? thanks.
Hi @lankerxd
I'm not sure what you're trying to do. Could you share some more context, please?
Could you describe what you mean by "debug"?
Could you describe what you mean by "debug"?
It's debugging , see this link : https://github.com/verdaccio/verdaccio/wiki/Debugging-Verdaccio 。
I create a debug configuration in VSCODE .
Don't try to debug the plugin directly. It doesn't run standalone, it only works as a Verdaccio plugin.
If you install the plugin as usual and debug Verdaccio, you can automatically debug the plugin, too.
Modifying the package.json
won't help you. index.ts
is TypeScript and can't be run by node like that.
If you want to start Verdaccio with the plugin from within this repository I would recommend running yarn dev
.
well,
I seem to understand ,thanks much.
I've made some attempts these days, but I doesn't succeed. I want to know is how to debugging
when start Verdaccio
with the plugin
from within this repository .
Looking at the following picture, I can debug the code in the dist folder, but because after parcel
build, the function name is renamed and all the contents are placed in one JS file
, it is more difficult to debug.