Debugging.


How to Debug SFDMU's Source Code

Debugging SFDMU involves setting up the local environment with the plugin's source code, which is accessible from its GitHub repository.

Setup Instructions

  1. Clone the Source Code: First, clone the SFDMU source code from GitHub.

  2. Configure VSCode for Debugging: If you are using Visual Studio Code (VSCode), adjust the settings to facilitate debugging:

    • Navigate to "File" => "Preferences" => "Settings".
    • Set "Node Debug" to "Auto Attach=On".
    • Ensure "Use Preview Auto Attach" is set to "Off".
  3. Run the Debug Session: With the source code directory as your current working directory, initiate the debug session using:

    ./debug.cmd --sourceusername source@mail.com --targetusername target@gmail.com -- other sfdmu flags...
    
Notes
  • MacOS Users: Modify the permissions for the debug.cmd file by executing chmod 777 ./debug.cmd to ensure it is executable.
Last updated on 20th Apr 2024