[SalesForce] Debugging using MavensMate (Sublime Text) in APEX code

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

Best Answer

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.