Posts

Showing posts from February, 2018

VS code debugging note

Image
Here I'm going to share experience of debugging vs code. I pick issue #26956 for example(not sure if I can fix it). Issue: #26956  :  Can't find files starting with `./` on MacOS. Steps: 1. Open vs code development. 2. Try if issue exist. 3. Find the relative code for issue. 4. Modify code to fix the bug. 5. Try if issue fixed. 6. Test error. 7. Pull request to repository. Let's begin: 1. Open vs code. In terminal, go to vs code directory. Open vs code using this command: ./scripts/code.sh  2. Try issue. Press 'cmd+p', type './' in the search box. It seems like this:     Yes. The issue is exist. We can start debugging it. 3. Find relative code: To find the code, we can use a tool called "Toggle Develop Tool". Press 'cmd+shift+p', type: 'developer:toggle develop tools'. It should pull down a list. Click the first one shown as below: The interface of the develop tool is like this: Then,

Debugging an Open Source API review

In the past several weeks, I've learned to build up an web api to retrieve phone number from string by using GET and POST. I've also learned to solve the issues for other students web api. I've shared the build web server experience in another blog page: https://qchen102.blogspot.ca/2018/02/tutorial-create-restful-web-server.html In this blog, I'm going to share experience about solving other project issues. Briefly process: 1. Read README file. 2. Build dependencies. (Java environment, node.js, etc) 3. Fork project to own Github, then download project (download package or git clone url) 4. Compile and run project. 5. Test if issues exist. 6. Find the relative part and fix. 7. Upload the fixed project to own Github. 8. Pull project to original owner. Some Git commands: 1. Clone resource to local: git clone url             2. Check branch: git branch 3. Change branch: git checkout -b name 4. Check log: git log    or   git show  5. Change stag

Visual Studio Code Developer Edition Install Review

Image
I’ve installed Visual Studio Code Developer Edition in 2015 Macbook Pro. Here’s its repo: https://github.com/Microsoft/vscode Visual Studio Code is an open source tool provide by Microsoft. It supports many different kinds of programming languages such as C/C++, python, php, Javascript, Java, etc. It's very simple and light. When I'm using it, it just like using text editor to write txt file. Fast to open, simple UI and easy to create and save file. It's very comfortable to code with it. In VS code, there’re many useful extensions to improve coding experience and debugging. Here are some of extensions I have installed:   Some of the extensions were installed when I was coding. For example, C/C++ was suggested to me when I was writing C++ code. It could highlight the code so that I am more clear when writing codes. Some extensions were installed because I need them. Like NPM, Node.js Extension Pack, etc, were installed cause