Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code + Chrome debug + nrwl architecture

Have you been able to debug an application in chrome developed using nx.dev?

https://nx.dev/angular

It looks like when you choose for NX you lose debugging capabilities. The generated .map.js files contains relative paths to source files but are missing the two initial directories where the files are located so the debugger for chrome installed inside vs-code is unable to bind breakpoints.

This is minimal code generated following instructions form link above

Thanks you for your help!

like image 383
IgnacioHR Avatar asked Oct 16 '22 05:10

IgnacioHR


1 Answers

Actually there is a downside to setting root:"",

  1. nx dep-graph gets confused and shows dependencies to the wrong app.
  2. nx g move --project folder/ gets confused and says one or more projects have the same root.

I deduce this is not the best way to solve this problem.

like image 140
Alain d'Espaignet Avatar answered Nov 15 '22 08:11

Alain d'Espaignet