<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Eclipse on kamuszhou&#39;s blog</title>
    <link>https://ykyi.net/tags/eclipse/</link>
    <description>Recent content in Eclipse on kamuszhou&#39;s blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 11 Dec 2013 02:31:13 +0000</lastBuildDate>
    <atom:link href="https://ykyi.net/tags/eclipse/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CDT调试中的追踪点和断点有什么区别。</title>
      <link>https://ykyi.net/?p=1077/</link>
      <pubDate>Wed, 11 Dec 2013 02:31:13 +0000</pubDate>
      <guid>https://ykyi.net/?p=1077/</guid>
      <description>&lt;p style=&#34;margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;&#34;&gt;
  追踪点（Tracepoint）被当成断点(breakpoint)的一种，但有两个不同点需要注意：
&lt;/p&gt;
&lt;p style=&#34;margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;&#34;&gt;
  1. 当一个追踪点在一个调试会话中被创建时，它并不种入到二进制代码中，直到用户显式地开始追踪实验。这意味着，创建/修改/删除追踪点并不影响程序，直到追踪真正开始。
&lt;/p&gt;
&lt;p style=&#34;margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;&#34;&gt;
  2. 简单的创建一个追踪点并不是非常有价值，因为它默认不会收集任何信息。重要的是，把操作(Actions)添加到Tracepoint，这样tracepoint被触发的时候，前面自定义的Action就大有用处了。
&lt;/p&gt;
&lt;p style=&#34;margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;&#34;&gt;
  来自CDT官网的原文：
&lt;/p&gt;
&lt;p style=&#34;margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;&#34;&gt;
  &lt;b&gt;Create Tracepoints&lt;/b&gt;
&lt;/p&gt;</description>
    </item>
    <item>
      <title>让eclipse自动生成的注释的时间显示英文，不用中文.</title>
      <link>https://ykyi.net/?p=1074/</link>
      <pubDate>Mon, 09 Dec 2013 08:21:55 +0000</pubDate>
      <guid>https://ykyi.net/?p=1074/</guid>
      <description>&lt;p&gt;&lt;span style=&#34;font-size:16px;&#34;&gt;这几天换成用eclipse在windows机器上编写代码，远程运行在linux上，并且在windows机器上远程调试。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&#34;font-size:16px;&#34;&gt;新建一个C++类的时候，eclipse/CDT自动生成注释，注释的时间用了中文，并且用的注释风格也不是我想要的。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&#34;3&#34;&gt;但我想全部用英文，这个如何解决了。在stackoverflow上找到了答案，并试验成功。&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&#34;3&#34;&gt;windows -&amp;gt; preferences -&amp;gt; c/c++ -&amp;gt; code style -&amp;gt; code template&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&#34;font-size:16px;&#34;&gt;在右边的注释模板中编辑File Comment，改成你想要的模式。比如我的：&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;/*&lt;strong&gt;*&lt;/strong&gt;*&lt;strong&gt;*&lt;/strong&gt;*&lt;strong&gt;*&lt;/strong&gt;*&lt;strong&gt;*&lt;/strong&gt;*&lt;strong&gt;*&lt;/strong&gt;*&lt;strong&gt;*&lt;/strong&gt;*&lt;strong&gt;*&lt;/strong&gt;***&lt;br&gt;
 * ${file_name}&lt;br&gt;
 * Author: ${user}&lt;br&gt;
 * Created on: ${date}&lt;br&gt;
 *&lt;strong&gt;*&lt;/strong&gt;*&lt;strong&gt;*&lt;/strong&gt;*&lt;strong&gt;*&lt;/strong&gt;*&lt;strong&gt;*&lt;/strong&gt;*&lt;strong&gt;*&lt;/strong&gt;*&lt;em&gt;&lt;strong&gt;&lt;span style=&#34;line-height: 1.6em;&#34;&gt;&lt;/strong&gt;&lt;/em&gt;*******/&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;再在eclipse的安装目录上找到eclipse.ini文件，加入：-Duser.language=en_US&lt;/p&gt;
&lt;p&gt;重启eclipse。现在${date}变量生产的日期就是全英文了。&lt;/p&gt;
&lt;p&gt;&lt;span style=&#34;color: rgb(0, 0, 0); font-family: Verdana, Geneva, sans-serif; font-size: 16px; line-height: 22px;&#34;&gt;copyright ykyi.net&lt;/span&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>如何从windows远程调试linux程序。</title>
      <link>https://ykyi.net/?p=1059/</link>
      <pubDate>Wed, 04 Dec 2013 03:29:06 +0000</pubDate>
      <guid>https://ykyi.net/?p=1059/</guid>
      <description>&lt;p class=&#34;p0&#34; data-mce-style=&#34;margin-top: 0pt; margin-bottom: 0pt; padding: 0px; border: 0px; font-size: 12px; font-family: Verdana, Geneva, sans-serif; vertical-align: baseline; line-height: 12pt; color: #000000; background-color: #f4f4f4;&#34; style=&#34;unicode-bidi: embed; margin: 0pt 0px; padding: 0px; border: 0px; font-family: Verdana, Geneva, sans-serif; vertical-align: baseline; line-height: 12pt; color: rgb(0, 0, 0); background-color: rgb(244, 244, 244);&#34;&gt;
  &lt;span data-mce-style=&#34;margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 16px; vertical-align: baseline;&#34; style=&#34;margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 16px; vertical-align: baseline;&#34;&gt;用gdb在远程linux机器上调试程序实在太不方便了。于是想到用eclipse的GUI调试。下面介绍&lt;span data-mce-style=&#34;margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 16px; vertical-align: baseline;&#34; style=&#34;margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; vertical-align: baseline;&#34;&gt;如何从windows&lt;span data-mce-style=&#34;margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 16px; vertical-align: baseline;&#34; style=&#34;margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; vertical-align: baseline;&#34;&gt;远程调试&lt;/span&gt;&lt;span data-mce-style=&#34;margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 16px; vertical-align: baseline;&#34; style=&#34;margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; vertical-align: baseline;&#34;&gt;linux&lt;/span&gt;&lt;span data-mce-style=&#34;margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 16px; vertical-align: baseline;&#34; style=&#34;margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; vertical-align: baseline;&#34;&gt;程序。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
