Breakpoint in the invoked assembly

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
 
O

Oleg Starodumov

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]
 
B

Boni

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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top