Details for these are found on the services details page in RHMAP. The object key is the service id and the object value is either a locally running instance of the service or a remote instance using the services current host. A function cannot be specified in a launch configuration therefore, you need to set the value as a stringified object. You will notice how the structure of FH_SERVICE_MAP is different from the rest of the Gruntfile. "program": "$įH_SERVICE_MAP defines the mappings from your cloud app to your services. Inside your launch.json replace the following code: The main change is mapping your local env variables from your Gruntfile.js or other env variables that exist. These can and will differ for different apps but for our RHMAP apps, there shouldn’t be much to change. Launch configurations are where the magic happens. Step 2 - Set up the Launch Configuration for your RHMAP App Click the Configure “gear icon” on the Debug view top bar and VS Code will generate a launch.json file under your workspace's.Click the Debug option on the Activity Bar.Set up VS Code Step 1 - Create VS Code Launch Configuration for your RHMAP App Cloned the RHMAP source code repos locally.Helps you be instantly productive with syntax highlighting, bracket matching, auto-indentation, box-selection, snippets.1000s of extensions that are effortlessly installable.Interactive Debugger allows you to step through source code, inspect variables, view call stacks, and execute commands in the console.For an introduction to running RHMAP client apps locally, see How to Setup your Apps to Target Locally on Device. Do you want to speed up your debugging process? This blog post is designed to help you do just that by empowering you with the knowledge of how to debug RHMAP Cloud Apps and MBaaS services locally using VS Code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |