Is it possible to debug angular ssr server.ts file + server side part + client side part + hmr?

Discussão em 'Angular' iniciado por Davi Davi, Fevereiro 25, 2025.

  1. Davi Davi

    Davi Davi Guest

    When I run the default vscode debugger for angular it just debugs the client side calls, for example:

    ngOnInit(){
    if(isPlatiformServer(PLATFORM_ID)){
    //breakpoint will not be call at server lifecyle
    }
    }


    and the node server:

    app.get("/sitemap.xml",async (req,res)=>{
    //useless breakpoint
    });


    I'd like I get able to debug the node server, server component parts and client side with hmr on, is that possible?

    Continue reading...

Compartilhe esta Página