This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to debug ASN.1 dissector with Visual Studio?

0

I have a problem with decoding RRC TargetRNC-toSourceRNC-Container with an error exception showing up. I tried to debug but debugger randomly pops through packet-rrc-template.c and not the actual packet-rrc.c.

I removed /O2 from config.nmake and added /DEBUG to LOCAL_LDFLAGS but with no luck. I also tried latest released both official and development, the problem presents there too. Is there any way to debug it after all?

alt text

asked 11 Feb '15, 05:14

jsnk's gravatar image

jsnk
6112
accept rate: 0%


One Answer:

0

Sure, see the Developers Guide Debugging Tools section 4.6.8. What was the problem with using the debugger and which version of VS are you using?

answered 11 Feb '15, 06:17

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

RRC TargetRNC-toSourceRNC-Container is sometims filled with junk if you are using a traffic generator. I beleve there there is a preference to turn the dissection off.

Debuging asn2wrs generated files with the debugger can be a pain as the line numbers don't match you may have to set the breakpoints in the .cnf file or rerun asn2wrs with the -L option see http://wiki.wireshark.org/Asn2wrs or put debug statements in the code. or set breakpoints in packet-per.c possibly.

(11 Feb '15, 07:06) Anders ♦

ISTR using the -L flag with asn2wrs (or removing the #line directives from the generated .c file using an editor) worked for me ...

(11 Feb '15, 08:15) Bill Meier ♦♦