Breakpoint in the invoked assembly

  • Thread starter Thread starter Boni
  • Start date Start date
B

Boni

Hi all,
I dynamically load assembly and call invoke. But in this case I can't set a
breakpoint in the source code of the assembly. So my question is:
I need a way to break somehow in the dynamically loaded (.Load(byte[]))
assembly. Can I set programmatic brekapoint, if yes how ?
Thanks
Boni
 
I dynamically load assembly and call invoke. But in this case I can't set a
breakpoint in the source code of the assembly. So my question is:
I need a way to break somehow in the dynamically loaded (.Load(byte[]))
assembly. Can I set programmatic brekapoint, if yes how ?

If you app's design allows, try to use another version of Load
(Load(byte[], byte[]) and pass the contents of the assembly's PDB file
in the second parameter. Then you should be able to debug the assembly
on source level, including breakpoints.

Regards,
Oleg
[VC++ MVP]
 
Thanks Oleg,
I will try that.
Oleg Starodumov said:
I dynamically load assembly and call invoke. But in this case I can't set
a
breakpoint in the source code of the assembly. So my question is:
I need a way to break somehow in the dynamically loaded (.Load(byte[]))
assembly. Can I set programmatic brekapoint, if yes how ?

If you app's design allows, try to use another version of Load
(Load(byte[], byte[]) and pass the contents of the assembly's PDB file
in the second parameter. Then you should be able to debug the assembly
on source level, including breakpoints.

Regards,
Oleg
[VC++ MVP]
 
Back
Top