Embed pdb into assembly

后端 未结 3 1536
悲&欢浪女
悲&欢浪女 2021-02-07 12:20

I want my application to be distributable as a single .exe file but I want to be able to get nice error reports with source code line numbers (the application simply se

3条回答
  •  情话喂你
    2021-02-07 12:37

    You could write a stub executable, that contains as embedded resources, both your actual executable and its pdb file. Upon starting the staub executable, it extracts the real executable and the pdb into a temporary directory and launches it.

    Just like some Installers or other applications do.

    I'm not sure if it is worth the extra effort though.

提交回复
热议问题