You forwarded the port 4004 when running the container, which allows you to access the application as if it would run locally. ![]() Open in a browser to test the application.You have installed Eclipse, Spring Tools, and our Eclipse plugin, see Add the SAP Cloud Business Application Tools for Eclipse.You have followed the instructions in Local Setup.Provided that the CDS Editor is installed, the CAP Notebook will be rendered automatically as the file is selected. Start an empty CAP Notebook by creating a *.capnb file. To see which line- and cell-magics can be used within a CAP Notebook, run a code cell with %quickref. Magics, or magic commands, known from IPython are conventient functions to solve common problems. To see which features are available in a CAP Notebook, open our CAP Notebook page: F1 → CDS: Open CAP Notebooks Page When available for a given page, these are accessible via the "CAP Notebook button" on the right-hand-side of the screen and enable you to try things out on your local machine, for example the Getting Started in a Nutshell guide. If you are new to CAP Notebooks, try out the notebooks based on our documentation. In addition, notebooks are a good way to share, compare, and also reproduce projects. The cell inputs/outputs are especially useful at later points in time when the project's details have long been forgotten. Storing persistent code (notebook output cells).Playing with REPL-type inputs (notebook input cells).With this approach, we want to encourage the CAP community to work with CAP in the same explorative manner that scientists work with their data, namely by: Restart the server when you did changes to your code using the Debug views restart button:Ī CAP Notebook is a Custom Notebook in Visual Studio Code that serves you as a guide on how to create, navigate, and monitor CAP projects. For example, add one to line 10 of our srv/cat-service.js by clicking in the gutter as shown here: You can add and stop at breakpoints in your service implementations. For example, in the Debug view launch cds run with the green arrow button: To run services, just open the Integrated Terminal in VS Code and use one of the cds serve variants, for example, use cds watch to automatically react on changes.Īlternatively, you can use the preconfigured tasks or launch configurations you get when creating a project with cds init. In VS Code, choose Install to enable the extension.Choose Install and VS Code opens the details page for the extension SAP CDS language support.Only for macOS: Install the code shell command.Install Visual Studio Code and launch it.Visual Studio Code Install Visual Studio Code In Chrome browser, just open chrome://inspect and click Inspect.In VS Code, use the Debug: Attach to Node Process command.If you executed cds watch on a standalone terminal, you can still attach a Node.js debugger to the process. If you do this in VS Code's integrated terminal with the 'Auto Attach' feature enabled, debugging starts right away. Similarly, debug-brk will start debug mode, but pause the application at the first line, so that you can debug bootstrap code. This restarts the application in debug mode. Use cds repl to live-interact with Node.js APIs bookshop $ cds repl Use cds env to inspect currently effective config settings bookshop $ cds env get requires.db Use cds add to gradually add facets to projects.If none is given, the default application URL will be opened.Ĭds serve -help for the different start options. Open the given URL (suffix) in the browser after starting. Specify the port for the livereload server. Specify file extensions to watch for in a comma-separated list. If you specify '0', the server picks a random free port.Īlternatively, specify the port using env variable PORT. Specify the port on which the launched server listens. Compiles and (re-)runs the serverĪctually, cds watch is just a convenient shortcut for: Tells cds to watch for relevant things to come or change in the specified Use cds help or cds ? to get specific help $ cds watch -help | mock call cds serve with mocked service | subscribe subscribe a tenant to a multitenant SaaS app | push push extension to SaaS app to enable or update it | pull pull base model for a SaaS app extension V | version get detailed version information T | lint run linter for env or model checks L | login login to extendable SaaS application W | watch run and restart on file changes S | serve run your services in local server M | import add models from external sourcesĬ | compile compile cds models to different outputs ![]() Y | bind bind application to remote services ![]() Use cds help to see an overview of all commands $ cds helpĪ | add add a feature to an existing project Use cds version to get information about your installed package version $ cds (global): 2.6.3
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |