Debug mode in Sonic Adventure DX is a hidden developer tool that lets you freely move objects and explore levels in unusual ways. It isn't available through normal gameplay and generally requires a specific button combination or a cheat device to activate.
Because the exact method varies by version and platform, the most reliable approach is to check a dedicated cheat resource for your specific release, where players have mapped out the precise steps to toggle it on.