Debugging PolarDNS
Because of the way modularity is implemented in PolarDNS, a specific method must be used when debugging.
To debug PolarDNS, it’s important to set breakpoints in the generated polardns_real.py
file rather than the polardns/core.py
file.
For example, once running PolarDNS in the PyCharm debugger, simply open the polardns_real.py
file and set your breakpoints there to debug your code.
Here’s a step-by-step procedure to confirm that you can debug it:
- Click
Debug 'polardns'
in PyCharm - Open the
polardns_real.py
file - Set a breakpoint in the
process_DNS()
function - Send a DNS query to your PolarDNS instance, e.g.
dig always.yourdomain.com @127.0.0.1
- This should immediately trigger your breakpoint
Previous: Crafting DNS Responses | Next: Useful Links |