NTR Debugger BreakPoints

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Cuber456, Dec 22, 2015.

  1. Cuber456
    OP

    Cuber456 Member

    Newcomer
    28
    10
    May 19, 2012
    United States
    I got some questions on this. The commands in the NTR Debugger are throwing me for a loop.

    Question:
    How do the breakpoint commands work?

    Judging from the NTR client, there are 3 breakpoint commands: 'bpadd', 'bpdis', 'bpena'

    I'm assuming "add" means address, "dis" means disable and "ena" means enable. I can enable and disable breakpoints depending on the pid entered into 'bpena' or 'bpdis'. Not sure what that is really doing though. 'bpadd' seems to only work when it wants to so there is something I definitely don't understand here.

    Take this for example. When I run memlayout() on a pid, I get the following result:

    For my purposes in particular, I am interested in the memory region 0x08000000 - 0x09a6bfff. I would like to set up a read breakpoint in that region. I know that this region exists because I can read it using the data() command. I can also write directly to the region in question using the write() command and I can see the results directly on my 3DS (I am overwriting strings).

    However, if I were to make a breakpoint such as bpadd(0x80B0000), I get the following result:

    Setting up read and write breakpoints in memory would be super useful. If someone could clear up my confusion on this matter, it would be much appreciated :)

    Thanks
     
  2. Romsstar

    Romsstar Operation Decoded

    Member
    1,083
    1,028
    Sep 14, 2008
    Gambia, The
    While this thread is kinda old the poster never got an answer and I have the same issue as he does so I'd like to know the answer to this issue as well. *Bump*
     
  3. MichiS97

    MichiS97 "Leftist snowflake milennial"

    Member
    GBAtemp Patron
    MichiS97 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,294
    718
    Jun 14, 2011
    Gambia, The
    Bavaria
    I'd like to get an answer for that, too, but it seems like nobody knows anything about it
    @cell9 please help us.
     
  4. DesuIsSparta

    DesuIsSparta GBAtemp Advanced Fan

    Member
    540
    174
    Oct 13, 2015
    United States
    Weaboo land
    Cell9 rarely uses the forums and replies to posts. The debugger is.. strange to use, but it does work.

    Simple tutorial:
    - Load up NTR
    - Load up the game and hold LEFT (or up, I forgot) until it does 3 flashing screens and goes to the logo
    - It should be stuck on the logo but not frozen
    - Open the debugger and connect to the program, but connect to port 5000 + process ID in hex! (e.g. 5000 + 0x5D = address in decimal)
    - Resume() command
    - Add breakpoint with bpadd()
    - From there you can figure it out, it's standard debugging.

    You can not use memory breakpoints unless you're on a new 3DS running 2.2DEX NTR as well as the debugger, forked by a Chinese user on the NTR website.
     
  5. MichiS97

    MichiS97 "Leftist snowflake milennial"

    Member
    GBAtemp Patron
    MichiS97 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,294
    718
    Jun 14, 2011
    Gambia, The
    Bavaria
    Thank you very very much! That part is interesting, though, so I can't use NTR 3.2? Does the NTR.bin from 2.2DEX version still work on my 10.3 emuNAND with the current BootNTR?
     
  6. Romsstar

    Romsstar Operation Decoded

    Member
    1,083
    1,028
    Sep 14, 2008
    Gambia, The
    Michi: The Dex Fork runs on my 9.2 Emunand so it should run on 10.3. 2.2 is the version of the debugger. for the CFW I used NTR 3.3.

    @DesulsSparta;
    Damn this confirms what I suspected. I got the 2.2 DEX NTR fork, everything else works fine too, BUT I'm on a O3DS XL. I suspected this might be the reason but cell9 said it would work on a O3DS as well...
    So I can't use breakpoints on a O3DS at all? Only write, read and the dumps? :/ Are there any plans to make this work on O3DS?
     
    Last edited by Romsstar, Mar 9, 2016
  7. DesuIsSparta

    DesuIsSparta GBAtemp Advanced Fan

    Member
    540
    174
    Oct 13, 2015
    United States
    Weaboo land
    You can use 3.0+ but it doesn't include memory breakpoints. it only has code breakpoints!

    Yeah, I have an O3DSXL so I can't really discover pointers without memory breakpoints.. it sucks! And the dev doesn't care to answer about.
    You can use breakpoints but only code breakpoints. memory breakpoints require 2.2 DEX

    And don't even think about updates for it, because the dev rarely even responds. :(
     
  8. Romsstar

    Romsstar Operation Decoded

    Member
    1,083
    1,028
    Sep 14, 2008
    Gambia, The
    Could you please explain how to use code breakpoints?
     
  9. DesuIsSparta

    DesuIsSparta GBAtemp Advanced Fan

    Member
    540
    174
    Oct 13, 2015
    United States
    Weaboo land
    Memory breakpoints generally lead to the code breakpoints (As code writes to memory), though without it.. good luck..

    Though if you DO find one, just set it, see if you can hit the breakpoint, resume, then you can modify the code from there.