2

Is there a way you can do debug the apex code using MavensMate Sublime text? Anybody tried?

3

Take a look at mavens documentation .They provide ability to get debug log

http://mavensmate.com/Plugins/Sublime_Text/Debugging

QUICK LOG SETUP

The "quick log" functionality allows you to create trace flags based on settings defined in your project's config/.debug configuration.

Select MavensMate > Debug > New Quick Log or control + shift + L

{
"levels": {
    "Workflow": "INFO", 
    "Callout": "INFO", 
    "System": "DEBUG", 
    "Database": "INFO", 
    "ApexCode": "DEBUG", 
    "Validation": "INFO", 
    "Visualforce": "DEBUG"
}, 
"users": [
    "005b0000000ThFMAB0" //array of user ids
], 
"expiration": 60 //in minutes
}

TO CREATE A NEW TRACE FLAG TO GENERATE DEBUG LOGS, YOU CAN EITHER:

  1. Use the Trace Flag UI

  2. Create trace flag(s) based on configuration in your project's config/.debug file.

6
  • have you used this debugging successfully in MM? coping from the site is not really helped me and watch this video how you can do debugging in eclipse IDE and I was looking something like that... youtube.com/watch?v=O1FXLz0BkUo
    – Nick Kahn
    May 23 '15 at 2:07
  • you mean you want to add breakpoints ? May 23 '15 at 2:21
  • yes something more interactive like in the video showed and I have recently started using MM and dunno much about still learning..
    – Nick Kahn
    May 23 '15 at 2:22
  • alright gono work on video to make your life easier .It will take some time probably this weekend to install on my machine .I pointed you to doc and if you need more info then its gono take time for me to get the video up . May 23 '15 at 2:27
  • 1
    Is interactive debugging enabled in your org ? To use breakpoint it should be first enabled in Org. May 23 '15 at 2:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.